# 定义一个学生类        
class Student:
    def __init__(self, name, id, chinese_score, math_score, english_score):
        self.name = name
        self.id = id
        self.chinese_score = chinese_score          
        self.math_score = math_score
        self.english_score = english_score

    def ScorePrint(self):
        # print(f"Name: {self.name}, Age: {self.age}")
        print(f"姓名: {self.name}, 学号: {self.id}, 语文成绩: {self.chinese_score}, 数学成绩: {self.math_score}, 英语成绩: {self.english_score}")


# 创建学生对象
student1 = Student("小明", "2023001", 85, 90, 88)
student2 = Student("小红", "2023002", 78, 82, 80)           
# 调用方法打印学生信息
student1.ScorePrint()
student2.ScorePrint()

# 学继承